package com.xclink.app.service.core.ReplyMessage;

import java.util.Date;

import com.xclink.app.utils.message.MessageUtil;
import com.xclink.app.utils.message.resp.Music;
import com.xclink.app.utils.message.resp.MusicMessage;

/**
 * 集中处理音乐消息之回复音乐消息
 * @author ljp
 *
 */
public class ProcessMusicMessage {
	public String process(String toUserName,String fromUserName,String thumbMediaId ){
		MusicMessage musicMessage = new MusicMessage();
		Music  music= new Music();
		music .setTitle("素材库中找");
		music.setDescription("音乐描述");
		music.setMusicUrl("https://www.baidu.com");
		music.setHQMusicUrl("https://www.baidu.com");
		music.setThumbMediaId(thumbMediaId);
		musicMessage.setFromUserName(toUserName);
		musicMessage.setToUserName(fromUserName);
		musicMessage.setMusic(music);
		musicMessage.setCreateTime(new Date().getTime());
		musicMessage.setMsgType(MessageUtil.RESP_MESSAGE_TYPE_MUSIC);
		return MessageUtil.MessageToXml(musicMessage);
	}
}
